package com.ruoyi.project.gxgw_modules.discountManager.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.project.gxgw_modules.discountManager.domain.YhqOwner;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

public class YhqOwnerVO extends YhqOwner {
    /** 用户名 */
    @Excel(name = "用户名")
    private String userName;
    /** 优惠券有效期 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date startTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date endTime;

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public Date getStartTime() {
        return startTime;
    }

    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }

    public Date getEndTime() {
        return endTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("ownerId", getOwnerId())
                .append("userId", getUserId())
                .append("userName", getUserName())
                .append("yhqId", getYhqId())
                .append("useState", getUseState())
                .append("startTime", getStartTime())
                .append("endTime", getEndTime())
                .append("useDate", getUseDate())
                .append("delFlag", getDelFlag())
                .toString();
    }
}
